package com.googlecode.tinyjava.syntaxtree;

import lombok.Getter;
import lombok.Setter;

import com.googlecode.tinyjava.symboltable.NamedItem;


public class TreeNode {
	@Getter
	@Setter
	private NamedItem reference;
	
	@Getter
	@Setter

	private TreeNode next;

	public TreeNode(NamedItem reference) {
		this.reference = reference;
	}
	
	public TreeNode() {
		
	}
	
	public void print() {
		System.out.println(this.getReference() + ";");
	}
}
